<template>
  <div style="width: 70%;margin: 0 auto">

    <el-table
        :data="tableData"
        style="width: 100%">
      <el-table-column
          prop="id"
          label="id"
          width="180">
      </el-table-column>
      <el-table-column
          prop="name"
          label="姓名"
          width="180">
      </el-table-column>
      <el-table-column
          prop="age"
          label="年龄">
      </el-table-column>
      <el-table-column
          prop="identity"
          label="身份证号">
      </el-table-column>
      <el-table-column
          prop="phone"
          label="电话">
      </el-table-column>
      <el-table-column
          prop="model"
          label="车型">
      </el-table-column>
    </el-table>

  </div>
</template>

<script>
export default {
  name: "admin",
  data(){
    return{
      tableData:[],
    }
  },
  created() {
    this.$axios.get('/api/up/info').then(res =>{
      console.log(res);
      this.tableData = res.data.data;
    })
  }

}
</script>

<style scoped>

</style>